package com.sms.jiujia.utils;

import com.sms.jiujia.service.CurlTimer;
import com.sms.jiujia.ui.setting.Constant;

import java.util.Timer;

/**
 * @author songmingsong
 * @date 2023/5/11
 */
public class TimerTaskUtils {
    public static void execute(ProcessBuilder curlCmd) {
        Constant.timer = new Timer();
        Constant.timer.schedule(new CurlTimer(curlCmd), 1000L, 60000L);
    }
}
